var lookAdminFunctions = function(c, a) {
	var b = new Ext.tree.TreePanel({
		id : "lookAdminFunctionView",
//     	checkModel: 'cascade',   //对树的级联多选
// 		onlyLeafCheckable: false,//对树所有结点都可选
 		autoScroll : true,
		rootVisible : false,
 		animate: false,
     	lines : true,
		loader : new Ext.tree.TreeLoader({ 
	    	dataUrl:__ctxPath + "/systemFunction/selectFunctionByAdminId?adminId="+c,
	    	preloadChildren :true
	    }),
		root : new Ext.tree.AsyncTreeNode({
			expanded : true
		}),
		tbar : [{
			xtype : "button",
			text : "展开",
			iconCls : "btn-expand",
			scope : this,
			handler : function() {
				b.expandAll();
			}
		}, {
			xtype : "tbseparator"
		},{
			xtype : "button",
			text : "收起",
			iconCls : "btn-collapse",
			scope : this,
			handler : function() {
				b.collapseAll();
			}
		},{
			xtype : "tbseparator"
		},"->",{
			id : "lookAdminFunctionFefresh",
			xtype : "button",
			text : "刷新",
			iconCls : "btn-refresh",
			handler : function() {
				b.getRootNode().reload();
			}
		}]
	});
	b.expandAll(); 

	
	var d = new Ext.Window({
		id : "LookAdminFunctionView",
		title : "查看[" + a + "]拥有的功能",
		width : 500,
		height : 600,
		modal : true,
		layout : "fit",
		plain : true,
		items : [b],
		buttonAlign : "center",
		buttons : [{
			xtype : "tbseparator"
		}, {
			text : "关闭",
			handler : function() {
				d.close();
			}
		}]
	});
	return d;
};